package com.ruoyi.finance.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.TreeEntity;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 科目表对象 t_subject
 * 
 * @author ruoyi
 * @date 2025-02-25
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TSubject
{
    private static final long serialVersionUID = 1L;

    /** 科目主键 */
    @TableId(type = IdType.AUTO)
    @Excel(name = "科目主键")
    private Long id;

    /** 科目编码 */
    @NotNull(message = "科目编码不能为空")
    @Excel(name = "科目编码")
    private String number;

    /** 科目名称 */
    @NotNull(message = "科目名称不能为空")
    @Excel(name = "科目名称")
    private String name;

    /** 上级科目 */
    @Excel(name = "上级科目")
    private Long fatherId;

    /** 科目类别 */
    @Excel(name = "科目类别")
    private Long assetsTypeId;

    /** 状态 */
    @Excel(name = "状态")
    private Long typeId;

    /** 余额方向 */
    @Excel(name = "余额方向")
    private Long yeFx;

    @TableField(exist = false)
    private String assetsName;
    @TableField(exist = false)
    private int[] subsidiaryIds;
    @TableField(exist = false)
    private String subsidiaryName;

}
